/**
 * 
 */
package japavo;

import japavo.gui.MainFrame;
import japavo.trainer.VocabularyTrainer;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import javax.swing.UIManager;

/**
 *
 */
public class Japavo {

	
	public static void main(String[] args) {
		// Set NimbusLookAndFeel
		try {
			UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		// Load properties
		Properties config = new Properties();
		try {
			config.load(new FileInputStream(new File(System.getProperty("user.dir") + "\\config.cfg")));
			System.getProperties().putAll(config);
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		// Start the programm
		new MainFrame(new VocabularyTrainer());
	}
}
